package com.software.seakdream.controller;

import com.software.seakdream.domain.Result;
import com.software.seakdream.entity.AssessResult;
import com.software.seakdream.entity.ClockInfo;
import com.software.seakdream.service.AssessResultService;
import com.software.seakdream.utils.ResultUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/assessResult")
public class AssessResultController {

    @Autowired
    private AssessResultService assessResultService;

    @RequestMapping("/getAssessResult")
    public Result getAssessResult(@RequestBody String amount) {
        AssessResult assessResult = assessResultService.getAssessResult(amount);
        return ResultUtils.success(assessResult);
    }
}
